$def with(post)
$var title: $post.title

<div class="post_title">
	<h1>$:post.title</h1>
	<p class="post_created">发布于: $post.created.strftime("%Y/%m/%d %H:%M:%S")</p>
</div>
$if session.loggedin:
	<span style="position: absolute;top:20px;right:20px">
		<a href="/edit/$post.id">编辑</a>
	</span>
	
<div class="post_content">$:markdown(post.content)</div>

<script>
	Swallow.renderHighlight('pre code');
</script>
$:partial.comment()

